package com.ngkj.zmfptback.sys.mapper.read;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ngkj.zmfptback.sys.bean.RoleEntity;
import com.ngkj.zmfptback.sys.bean.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ChenHN
 * @since 2021/12/21 creation
 **/
@Mapper
public interface RoleReadMapper extends BaseMapper<RoleEntity> {

    List<RoleEntity> getAllRole(@Param("roleEntity") RoleEntity roleEntity);

    IPage<RoleEntity> getPageRoles(@Param("roleEntity") RoleEntity roleEntity, @Param("page")Page<RoleEntity> page);


    String getRoleIdByRoleCode(@Param("roleCode") String roleCode);
}
